package com.wxy.demo.thread;

/**
 * <p>
 * 睡眠
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/9/7 17:51
 */
public class Demo {
    public static void main(String[] args) throws InterruptedException {
        // 睡眠10秒
        long start = System.currentTimeMillis();
        Thread.sleep(10000);
        System.out.println(System.currentTimeMillis() - start);
    }
}
